package com.software.sqlite.api.admin.v1.service;

import com.software.sqlite.api.admin.v1.vo.AdminLoginUserVO;
import com.software.sqlite.entity.InitInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IAmV1SysUserService {

    /**
     * 登录
     * @param userName
     * @param password
     * @return
     */
    AdminLoginUserVO login(String userName, String password,String verifyCode,HttpServletRequest request);

    InitInfo getInitInfo(String token)throws Exception;
    /**
     * 获取token有效时间
     * @param token
     * @return
     */
    Long getTokenTime(String token);

    String uploadImage(MultipartFile multipartFile, Map<String,Object> paramsMap, HttpServletRequest request)throws Exception;

    void showImageByServer(String filePath,HttpServletRequest request, HttpServletResponse response);

    void downloadApk(String filePath,HttpServletRequest request, HttpServletResponse response);

    void downloadExcel(String filePath, HttpServletRequest request, HttpServletResponse response);
}
